import numpy as np
np.random.seed(0)

# q=0
# rewards=[]
# for n in range(1,11):
#     reward=np.random.rand()
#     # rewards.append(reward)
#     # q=sum(rewards)/n
#     q=q+(reward-q)/n
#     print(q)

rates=np.random.rand(10)
print(rates)
rate=rates[1]

print(rate)
